package com.humngyang.com.hmy.study.springtest.mybatis;

import org.apache.ibatis.annotations.Select;

import java.lang.annotation.Annotation;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class HmyInvocationHandler implements InvocationHandler {
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {

        System.out.println(" jdbc -- con execute sql ");
        String s = method.getAnnotation(Select.class).value()[0];
        System.out.println(s);
        return null;
    }
}
